import request from '@/utils/request'

// 查询所有岗位
export function getAllRank(query) {
    return request({
        url: '/ny-iqc/post/listAll',
        method: 'get',
        params: query
    })
}
// 查询所有岗位
export function getRankList(query) {
    return request({
        url: '/ny-iqc/post/list',
        method: 'get',
        params: query
    })
}
// 查询列表
export function getPostUser(query) {
    return request({
        url: '/ny-iqc/postUser/list',
        method: 'get',
        params: query
    })
}
// 新增
export function addRank(query) {
    return request({
        url: '/ny-iqc/post',
        method: 'post',
        data: query
    })
}

// 编辑
export function editRank(query) {
    return request({
        url: '/ny-iqc/post',
        method: 'put',
        data: query
    })
}

// 删除
export function deleteRank(id) {
    return request({
        url: '/ny-iqc/post/' + id,
        method: 'delete',
    })
}
